
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-list',
  templateUrl: './list.component.html',
  styleUrls: ['./list.component.scss']
})
export class ListComponent implements OnInit {

  // 标题
  title: String = 'list'
  list = [
    { name: 'one', score: '100', class: '1-1' },
    { name: 'two', score: '99', class: '1-2' },
    { name: 'three', score: '98', class: '1-3' }
  ]
  test = ''

  constructor() {
    title: 'list'
  }

  ngOnInit() {
    this.title = 'new list'
  }

}
